package cn.seem.service.impl;

import cn.seem.mapper.UserMapper;
import cn.seem.model.User;
import cn.seem.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl implements UserService {
    private UserMapper userMapper;

    @Autowired
    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public User findUserByName(String userName) {
        return userMapper.selectUserByName(userName);
    }
}
